<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端-添加转让</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_form none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="trade" sub="unlock" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1 m_over">
                <ul class="breadcrumbs">
                    <li><span>交易管理</span>&gt;</li>
                    <li><a href="unlock.html">解锁处理</a>&gt;</li>
                    <li class="on">添加解锁</li>
                </ul>
                <table class="m_fmtable m_mt fixed" v-allcheck="check">
                    <tbody>
                        <tr>
                            <th>解锁方式</th>
                            <td width="200">
                                <select class="m_select" name="type" v-model="res.type" check="[{'type':'require'}]">
                                    <option selected="" value="1">单个解锁</option>
                                    <option value="2">批量解锁</option>
                                </select>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>计划标题</th>
                            <td>
                                <input class="m_input" type="text" v-model="res.plan_name" check="[{'type':'require'}]">
                            </td>
                            <td></td>
                        </tr>
                        <template v-if="res.type == 1">
                            <tr>
                                <th>交易号</th>
                                <td>
                                    <input v-nogetinfo="{fn:getInfoCallback,val:res.no}" maxlength="12" v-inputnumber class="m_input m_medium" type="text" v-model="res.no" check="[{'type':'require'}]">
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>姓名</th>
                                <td>
                                    <input class="m_input" type="text" disabled v-model="res.name" check="[{'type':'require'}]">
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>藏品名称</th>
                                <td>
                                    <productselect :col_id.sync="res.col_id" check="[{'type':'require'}]"></productselect>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>解锁数量</th>
                                <td>
                                    <input class="m_input" v-inputnumber type="text" v-model="res.cnt" check="[{'type':'require'}]">
                                </td>
                            </tr>
                        </template>
                        <template v-if="res.type == 2">
                            <tr>
                                <th>藏品名称</th>
                                <td>
                                    <productselect :col_id.sync="res.col_id" check="[{'type':'require'}]"></productselect>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>解锁信息</th>
                                <td>
                                    <input class="m_input m_medium" v-on:change="uploadFile($event,'file')" type="file" check="[{'type':'require'}]">
                                </td>
                                <td><a href="http://xj-public-test.oss-cn-hangzhou.aliyuncs.com/template/lock/%E8%A7%A3%E9%94%81%E8%AE%A1%E5%88%92%E6%A8%A1%E6%9D%BF.xls" _target="_blank">下载模板</a></td>
                            </tr>
                        </template>
                        <tr>
                            <th></th>
                            <td>
                                <button class="m_btn" v-on:click="submit">提交</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/trade/unlock_add" );
    </script>

</body>
</html>
